// Stored info types come back nested with previous versions. We only want the current
// version in the unwrapped form
name := res["name"].(string)
v, ok := res["currentVersion"]
if !ok || v == nil {
  return nil, nil
}

current := v.(map[string]interface{})
configRaw, ok := current["config"]
if !ok || configRaw == nil {
  return nil, nil
}

config := configRaw.(map[string]interface{})
// Name comes back on the top level, so set here
config["name"] = name

return config, nil
